﻿Imports System
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices

Namespace Google.Desktop.Interop
    <ComImport, Guid("D7D23586-2724-4B05-AF2D-67B94703FEEA"), TypeLibType(CShort(&H10C0))> _
    Public Interface IGoogleDesktopEventPublisher
        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H3F2)> _
        Function Subscribe(<[In]> ByVal registration_cookie As Integer, <[In], MarshalAs(UnmanagedType.IUnknown)> ByVal subscriber As Object) As <MarshalAs(UnmanagedType.Interface)> IGoogleDesktopEventSubscription
        <MethodImpl(MethodImplOptions.InternalCall, MethodCodeType:=MethodCodeType.Runtime), DispId(&H3F3)> _
        Sub Unsubscribe(<[In], MarshalAs(UnmanagedType.Interface)> ByVal subscription As IGoogleDesktopEventSubscription)
    End Interface
End Namespace

